package game.entity.kickstones;

import game.Game;
import game.GameConstants;
import game.entity.Ball;

import org.newdawn.slick.Color;
import org.newdawn.slick.Image;

public class SpeedStone extends KickStone {
    
    private final static Color SPEEDSTONE_STANDARDCOLOR = Color.red;

    public SpeedStone(Game gameContainer, float xPos, float yPos, Image img, int moveDirection) {
        super(gameContainer, xPos, yPos, img, moveDirection);
    }

    public SpeedStone(Game gameContainer, float xPos, float yPos, float width, float height, int moveDirection) {
        super(gameContainer, xPos, yPos, width, height, moveDirection, SPEEDSTONE_STANDARDCOLOR);
    }

    public SpeedStone(Game gameContainer, float xPos, float yPos, int moveDirection) {
        super(gameContainer, xPos, yPos, moveDirection, SPEEDSTONE_STANDARDCOLOR);
    }

    @Override
    public void afterKick(Ball ball) {
		ball.setxSpeed(ball.getxSpeed() * GameConstants.SPEEDSTONE_BOOST);
        ball.setySpeed(ball.getySpeed() * GameConstants.SPEEDSTONE_BOOST);
    }

}